package com.zhiche.lisa.bms.dao.model.capital;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 排款计划明细表新
 * </p>
 *
 * @author liuanshun
 * @since 2018-12-17
 */
@TableName("lisa_capital_arr_dtl")
public class CapitalArrDtl extends Model<CapitalArrDtl> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 主表id
     */
	@TableField("head_id")
	private Long headId;
	/**
	 * 关联支付申请表id
	 */
	@TableField("pay_id")
	private Long payId;
    /**
     * 支付申请单号
     */
	@TableField("pay_apply_code")
	private String payApplyCode;
    /**
     * 承运商名称
     */
	@TableField("lsp_name")
	private String lspName;
    /**
     * 承运商id
     */
	@TableField("lsp_id")
	private Long lspId;
    /**
     * 类型：10-承运商、20-车队、 30-司机
     */
	@TableField("bill_type")
	private Long billType;
    /**
     * 账单金额
     */
	@TableField("bill_sum")
	private BigDecimal billSum;
    /**
     * 实付金额
     */
	@TableField("payment_sum")
	private BigDecimal paymentSum;
    /**
     * 油卡尾款金额
     */
	@TableField("oil_ba_pay_sum")
	private BigDecimal oilBaPaySum;
    /**
     * 油卡尾款已排金额
     */
	@TableField("oil_al_pay_sum")
	private BigDecimal oilAlPaySum;
    /**
     * 油卡尾款剩余金额
     */
	@TableField("oil_er_pay_sum")
	private BigDecimal oilErPaySum;
    /**
     * 现金尾款金额
     */
	@TableField("cash_ba_pay_sum")
	private BigDecimal cashBaPaySum;
    /**
     * 现金尾款已排金额
     */
	@TableField("cash_al_pay_sum")
	private BigDecimal cashAlPaySum;
    /**
     * 现金尾款剩余金额
     */
	@TableField("cash_er_pay_sum")
	private BigDecimal cashErPaySum;
    /**
     * 已排款金额
     */
	@TableField("execute_sum")
	private BigDecimal executeSum;
    /**
     * 未排款金额
     */
	@TableField("no_execute_sum")
	private BigDecimal noExecuteSum;
    /**
     * 当次排款金额
     */
	@TableField("current_execute")
	private BigDecimal currentExecute;
    /**
     * 余额
     */
	private BigDecimal balance;
    /**
     * 应收时间
     */
	@TableField("should_receipt_date")
	private Date shouldReceiptDate;
	/**
	 * 万金油支付申请号
	 */
	@TableField("cost_id")
	private String costId;
	/**
	 * 万金油支付申请状态0-未审核、10-审核成功、20-审核驳回、30-转账失败
	 */
	@TableField("sync_status")
	private String syncStatus;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public Long getPayId() {
		return payId;
	}

	public void setPayId(Long payId) {
		this.payId = payId;
	}

	public String getPayApplyCode() {
		return payApplyCode;
	}

	public void setPayApplyCode(String payApplyCode) {
		this.payApplyCode = payApplyCode;
	}

	public String getLspName() {
		return lspName;
	}

	public void setLspName(String lspName) {
		this.lspName = lspName;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	public Long getBillType() {
		return billType;
	}

	public void setBillType(Long billType) {
		this.billType = billType;
	}

	public BigDecimal getBillSum() {
		return billSum;
	}

	public void setBillSum(BigDecimal billSum) {
		this.billSum = billSum;
	}

	public BigDecimal getPaymentSum() {
		return paymentSum;
	}

	public void setPaymentSum(BigDecimal paymentSum) {
		this.paymentSum = paymentSum;
	}

	public BigDecimal getOilBaPaySum() {
		return oilBaPaySum;
	}

	public void setOilBaPaySum(BigDecimal oilBaPaySum) {
		this.oilBaPaySum = oilBaPaySum;
	}

	public BigDecimal getOilAlPaySum() {
		return oilAlPaySum;
	}

	public void setOilAlPaySum(BigDecimal oilAlPaySum) {
		this.oilAlPaySum = oilAlPaySum;
	}

	public BigDecimal getOilErPaySum() {
		return oilErPaySum;
	}

	public void setOilErPaySum(BigDecimal oilErPaySum) {
		this.oilErPaySum = oilErPaySum;
	}

	public BigDecimal getCashBaPaySum() {
		return cashBaPaySum;
	}

	public void setCashBaPaySum(BigDecimal cashBaPaySum) {
		this.cashBaPaySum = cashBaPaySum;
	}

	public BigDecimal getCashAlPaySum() {
		return cashAlPaySum;
	}

	public void setCashAlPaySum(BigDecimal cashAlPaySum) {
		this.cashAlPaySum = cashAlPaySum;
	}

	public BigDecimal getCashErPaySum() {
		return cashErPaySum;
	}

	public void setCashErPaySum(BigDecimal cashErPaySum) {
		this.cashErPaySum = cashErPaySum;
	}

	public BigDecimal getExecuteSum() {
		return executeSum;
	}

	public void setExecuteSum(BigDecimal executeSum) {
		this.executeSum = executeSum;
	}

	public BigDecimal getNoExecuteSum() {
		return noExecuteSum;
	}

	public void setNoExecuteSum(BigDecimal noExecuteSum) {
		this.noExecuteSum = noExecuteSum;
	}

	public BigDecimal getCurrentExecute() {
		return currentExecute;
	}

	public void setCurrentExecute(BigDecimal currentExecute) {
		this.currentExecute = currentExecute;
	}

	public BigDecimal getBalance() {
		return balance;
	}

	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	public Date getShouldReceiptDate() {
		return shouldReceiptDate;
	}

	public void setShouldReceiptDate(Date shouldReceiptDate) {
		this.shouldReceiptDate = shouldReceiptDate;
	}

	public String getCostId() {
		return costId;
	}

	public void setCostId(String costId) {
		this.costId = costId;
	}

	public String getSyncStatus() {
		return syncStatus;
	}

	public void setSyncStatus(String syncStatus) {
		this.syncStatus = syncStatus;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CapitalArrDtl{" +
				"id=" + id +
				", headId=" + headId +
				", payId=" + payId +
				", payApplyCode='" + payApplyCode + '\'' +
				", lspName='" + lspName + '\'' +
				", lspId=" + lspId +
				", billType=" + billType +
				", billSum=" + billSum +
				", paymentSum=" + paymentSum +
				", oilBaPaySum=" + oilBaPaySum +
				", oilAlPaySum=" + oilAlPaySum +
				", oilErPaySum=" + oilErPaySum +
				", cashBaPaySum=" + cashBaPaySum +
				", cashAlPaySum=" + cashAlPaySum +
				", cashErPaySum=" + cashErPaySum +
				", executeSum=" + executeSum +
				", noExecuteSum=" + noExecuteSum +
				", currentExecute=" + currentExecute +
				", balance=" + balance +
				", shouldReceiptDate=" + shouldReceiptDate +
				", costId='" + costId + '\'' +
				", syncStatus='" + syncStatus + '\'' +
				"} " + super.toString();
	}
}
